package com.joelaws.prototype.client.rpc;

import java.util.Map;

import com.joelaws.prototype.client.data.User;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ManageAsync {

	public void getUser(long userID, AsyncCallback<User> callback);

	public void getUsers(long[] userIDs, AsyncCallback<Map<Long, User>> callback);

	public void login(String email, String password, AsyncCallback<User> callback);

	public void register(String email, String firstName, String lastName, String password, AsyncCallback<User> callback);

	public void updateUser(User user, AsyncCallback<?> callback);
}
